//
//  YWPopView.h
//  maintain
//
//  Created by Kyo on 16/2/17.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import <UIKit/UIKit.h>
@class YWHandler;
@class YWQrcodeEquipmentInfo;
@class YWEquipment;
@class YWEquipmentFieldOption;
@class YWMaterial;

@protocol YWPopViewDelegate <NSObject>

@optional
- (void)popValue:(NSInteger)reasonId andContent:(NSString*)content;
- (void)popHandler:(YWHandler*)handler;
- (void)popQrcodeEquipmentInfo:(YWQrcodeEquipmentInfo*)qrcodeEquipmentInfo equipment:(YWEquipment*)equipment;
- (void)popMonthValue:(NSString*)monthValue;
- (void)popRuntimeOption:(YWEquipmentFieldOption*)option;
@end

@interface YWPopView : UIView

- (instancetype)initTroubleReasonWithTitle:(NSString*)title;
- (instancetype)initAssignMemberWithTitle:(NSString*)title handler:(NSArray*)handlers;
- (instancetype)initTempmissionSelectWithTitle:(NSString*)title qrcodeEquipmentInfoArray:(NSArray*)qrcodeEquipmentInfoArray maintenanceType:(NSInteger)maintenanceType;
- (instancetype)initMonthWithDays:(NSArray*)months;
- (instancetype)initRulesWithTitle:(NSString*)title ruleArray:(NSArray*)rulesArray;
- (instancetype)initReturnBackWithTitle:(NSString*)title Materials:(NSArray*)materialsArray type:(NSString*)type;
@property (nonatomic, strong)NSArray *optionArray;
//- (instancetype)initRuntimeOptionsWithArray:(NSArray*)options;
- (void)show;

@property (nonatomic, copy) dispatch_block_t leftBlock;
@property (nonatomic, copy) dispatch_block_t rightBlock;
@property (nonatomic, copy) dispatch_block_t dismissBlock;
@property (nonatomic, weak) id<YWPopViewDelegate> delegate;
@end
